package com.linzp.bishe.mapper;

import com.linzp.bishe.entity.Paper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linzp.bishe.model.PaperModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Mapper
public interface PaperMapper extends BaseMapper<Paper> {
	public List<PaperModel> getByIdAllPaper(@Param("id") Integer id, @Param("tableName") String tableName,
	                                        @Param("searchPaperName") String searchPaperName,
	                                        @Param("searchPublicationName") String searchPublicationName,
	                                        @Param("searchStatus") String searchStatus, @Param("searchYear") String searchYear,
	                                        @Param("current") Integer current, @Param("page") Integer page);

	public Integer getByIdAllPaperCounts(@Param("id") Integer id, @Param("tableName") String tableName,
	                                     @Param("searchPaperName") String searchPaperName,
	                                     @Param("searchPublicationName") String searchPublicationName,
	                                     @Param("searchStatus") String searchStatus,
	                                     @Param("searchYear") String searchYear);
}
